package com.three.productList.feign;

import com.three.core.vo.R;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author ：li
 * @date ：Created in 2025/3/13 013 17:46
 * @description：
 * @modified By：
 * @version:
 */
@Component
public class FontUserFallbackFactory implements FallbackFactory<FrontUserFeign> {
    @Override
    public FrontUserFeign create(Throwable cause) {
        return new FrontUserFeign() {
            @Override
            public R findUserStatic() {
                return new R<>(500,"服务器错误",null);
            }

            @Override
            public R findUserStaticByUserId(String name) {
                return new R<>(500,"服务器错误",null);
            }
        };
    }
}
